package customer_manage_function_implementation;

import java.util.LinkedList;

import customer_manage_database.Customer;



public class DeleteCustomer {
	/*
	 * 根据输入ID删除客户信息
	 */
	
	public LinkedList<Customer> deleteCustomer(String[] str,LinkedList<Customer> lList){
		int id=0;
		id=Integer.parseInt(str[0]);
		for (int i = 0; i < lList.size(); i++) {
			if (lList.get(i).getID()==id) {
				lList.remove(i);
			}
		}
		System.out.println("delete success!!!");
		return lList;
		
	}

//	public void deleteCustomer(String[] parameter, LinkedList<Customer> lList) {
//		// TODO Auto-generated method stub
//		
//	}
	

}
